#ifndef _MS2LSTAT_MOD_H_
#define _MS2LSTAT_MOD_H_

#include <clx/libECM.h>

typedef struct {
	ecm_uint32	tick;
	ecm_uint32	mid;
	ecm_uint32	cid;
	ecm_uint32	pid;
	ecm_uint32	duration;
	ecm_uint32	startstamp;
	ecm_uint32	status;
	ecm_int32	playback_rate;
} lent_t;

typedef struct {
	ECMBOOL (*parse)(char *line, lent_t *lent);
} lparser_op_t;

extern ecm_uint32 lp_get_timetick(const char *timestr);
extern ecm_uint32 lp_get_mid(const char *media_str);
extern ecm_uint32 lp_get_cid(const char *client_str);
extern ecm_uint32 lp_get_pid(const char *player_str);

extern void lp_update_media_info(ecm_uint32 mid, ecm_uint64 length, ecm_uint64 size);

extern void lp_error(const char *fmt, ...);

#endif
